#include "mutex_lock.hpp"
#include <iostream>

namespace rocket 
{
    
mutex_lock::mutex_lock()
{
    pthread_mutex_init(&_lock, NULL);
}
mutex_lock::~mutex_lock()
{
    pthread_mutex_destroy(&_lock);
}
void mutex_lock::lock()
{
    pthread_mutex_lock(&_lock);
}
void mutex_lock:: unlock()
{
    pthread_mutex_unlock(&_lock);
}

pthread_mutex_t *mutex_lock:: get_mutex_lock_pointer()
{
    return &_lock;
}

}